<!DOCTYPE html>
<html lang="zh-CN">

<head>

  <meta content="text/html;charset=utf-8" http-equiv="content-type">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

  <title>${orgName} - 我的产品</title>

  <!-- Bootstrap Core CSS -->
<!-- MetisMenu CSS -->
<!-- Custom CSS -->
<!-- Custom Fonts -->
  <!-- Timeline CSS -->
  <!-- Morris Charts CSS -->
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->

    <link rel="stylesheet" href="/server/r/bower_components/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/server/r/bower_components/metisMenu/dist/metisMenu.min.css" />
    <link rel="stylesheet" href="/server/r/static/css/sb-admin-2_e507c2b.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/font-awesome/css/font-awesome.min.css" />
    <link type="text/css" rel="stylesheet" href="/server/r/static/css/hxz/common_2baa698.css" />
    <link rel="stylesheet" href="/server/r/static/css/timeline_1c13c9f.css" />
    <link rel="stylesheet" href="/server/r/bower_components/morrisjs/morris.css" />
    <link type="text/css" rel="stylesheet" href="/server/r/bower_components/select2/dist/css/select2.min.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/alertify/themes/alertify.core.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/alertify/themes/alertify.bootstrap.css" />
</head>

<body>
<div id="wrapper">
  <input type="hidden" id="client-id" value="${clientId}">
  <input type="hidden" id="domain" value="${domain}">
  <!--产品二维码的模态窗口-->
  <div class="modal fade" id="activity-qrcode" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 360px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
          <h4 class="modal-title">预览二维码</h4>
          <h5 class="modal-subtitle"></h5>
          <h6>若要将活动以微信文章的形式推送给用户，在下方二维码处鼠标单击右键，图片存储为。保存后，将此二维码添加至微信文章中，扫码进行报名跳转。如果是认证公众号菜单跳转的形式，则可以直接点击复制下方链接进行跳转。</h6>
        </div>
        <div class="modal-body">
          <div id="code1" style="text-align: center;"></div>
          <div class="form-group">
            <label>链接：</label>
            <textarea class="form-control" cols="20" rows="2" id="activity-qrcode-link"></textarea>
          </div>
          <div class="form-group" style="text-align: center;">
            <button class="btn btn-sm btn-success" id="copy-activity-qrcode-link">点击复制链接</button>
          </div>
        </div>
      </div>
      <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
  </div>
  <!--产品二维码的模态窗口-->
  <!-- Navigation -->
  <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">

    <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="index">${orgName}</a>
</div>
<!-- /.navbar-header -->

<ul class="nav navbar-top-links navbar-right">

    <!-- /.dropdown -->
    <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
            ${userName} <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
        </a>
        <ul class="dropdown-menu dropdown-user">
            <li><a href="/server/logout"><i class="fa fa-sign-out fa-fw"></i> 退出系统</a>
            </li>
        </ul>
        <!-- /.dropdown-user -->
    </li>
    <!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->

    <div class="navbar-default sidebar" role="navigation">
      <div class="sidebar-nav navbar-collapse">
        <ul class="nav" id="side-menu">
    <li>
        <a href="/server/index"><i class="fa fa-dashboard fa-fw"></i> 首页</a>
    </li>
    <#if authMenu("/verify/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="/server/verify">
                <i class="fa fa-check fa-fw"></i> 核销
            </a>
            <!-- /.nav-second-level -->
        </li>
    </#if>
    <#if authMenu("/activity/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-asterisk fa-fw"></i> 产品管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/activity-add"> 创建产品</a>
                </li>
                <li>
                    <a href="/server/activity-list"> 我的产品</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

    <#if authMenu("/player/*", Session.USER_PERMISSION?string)>
        <#if Session.ACTIVITY0?exists||Session.ACTIVITY1?exists>
            <li>
                <a href="#"><i class="fa fa-male fa-fw"></i> 报名管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/server/player-list">报名查询</a>
                    </li>
                    <li>
                        <a href="/server/verifyRecord/list">核销记录</a>
                    </li>
                </ul>
            </li>
        </#if>
    </#if>

    <#if authMenu("/order/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-list-alt fa-fw"></i> 订单管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/order-list">订单查询</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>

        <#if authMenu("/ticket/*", Session.USER_PERMISSION?string)>
            <#if Session.ACTIVITY3?exists || Session.ACTIVITY6?exists>
                <li>
                    <a href="#"><i class="fa fa-ticket fa-fw"></i> 雪票管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="/server/ticket-list">数据统计</a>
                        </li>
                        <li>
                            <a href="/server/verify?type=6">雪票核销</a>
                        </li>
                        <li>
                            <a href="/server/ticket-verify-list">核销记录</a>
                        </li>
                    </ul>
                    <!-- /.nav-second-level -->
                </li>
            </#if>
        </#if>
    </#if>

    <#if authMenu("/hotel/*", Session.USER_PERMISSION?string)>
        <#if Session.ACTIVITY7?exists>
            <li>
                <a href="#"><i class="fa fa-building fa-fw"></i> 酒店预订管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/server/hotel-order-list">酒店预订管理</a>
                    </li>
                    <li>
                        <a href="/server/hotel-verify-list">核销记录</a>
                    </li>
                </ul>
            </li>
        </#if>
    </#if>

    <#if authMenu("/coach/*", Session.USER_PERMISSION?string)>
        <#if Session.ACTIVITY2?exists>
            <li>
                <a href="#"><i class="fa fa-users fa-fw"></i> 教练管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/server/coach-list"> 预约查询</a>
                    </li>
                    <li>
                        <a href="/server/verify?type=2">教学签到</a>
                    </li>
                    <li>
                        <a href="/server/coach-verify-list">核销记录</a>
                    </li>
                </ul>
                <!-- /.nav-second-level -->
            </li>
        </#if>
    </#if>

    <#if authMenu("/camp/*", Session.USER_PERMISSION?string)>
        <#if Session.ACTIVITY5?exists>
            <li>
                <a href="#"><i class="fa fa-trophy fa-fw"></i> 冬令营管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/server/camp-player-list"> 报名查询</a>
                    </li>
                </ul>
                <!-- /.nav-second-level -->
            </li>
        </#if>
    </#if>

    <#if authMenu("/finance/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-rmb fa-fw"></i> 财务管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/stream-list"> 交易流水</a>
                </li>
                <li>
                    <a href="/server/withdrawals-list">提现管理</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

    <#if authMenu("/customer/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-user-md fa-fw"></i> 会员管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/customer-list">会员查询</a>
                </li>
            </ul>
        </li>
    </#if>

    <#if authMenu("/comment/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-comments fa-fw"></i> 评价管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/comment-list">评价管理</a>
                </li>
            </ul>
        </li>
    </#if>

    <#if authMenu("/statistics/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-bar-chart fa-fw"></i> 统计<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/statistics/product/list">产品统计</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

    <#if authMenu("/marketing/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-key fa-fw"></i> 营销管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/marketing-list">营销活动</a>
                </li>
                <li>
                    <a href="/server/marketing-present-list">礼品列表</a>
                </li>
                <li>
                    <a href="/server/marketing-user-list">用户信息统计</a>
                </li>

            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

    <#if authMenu("/user/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-gear fa-fw"></i> 设置<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/authority/user-list">用户&权限</a>
                </li>

                <li>
                    <a href="/server/user-profile">主办方信息</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

</ul>
      </div>
      <!-- /.sidebar-collapse -->
    </div>
    <!-- /.navbar-static-side -->
  </nav>

  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h3 class="page-header">我的产品
          <div class="pull-right">
            <a href="/server/activity-add" type="button" class="btn btn-sm btn-primary">创建产品</a>
          </div>
        </h3>
      </div>
      <!-- /.col-lg-12 -->
    </div>
    <div class="form-inline">
      <div class="form-group">
        <label>产品名称：</label>
        <select class="form-control input-sm" id="select-activity"></select>
      </div>
      <div class="form-group">
        <a id="activity-filter-btn" class="btn btn-sm btn-success btn-outline">查询</a>
        <a href="/server/activity-list" type="button" class="btn btn-sm btn-success btn-outline">全部</a>
      </div>
    </div>

    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <div class="panel panel-default">
          <div class="panel-heading">
            产品列表
          </div>
          <!-- /.panel-heading -->
          <div class="panel-body">
            <div class="dataTable_wrapper">
              <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr class="warning">
                  <th>产品ID</th>
                  <th>产品名称</th>
                  <th>产品类型</th>
                  <th>创建日期</th>
                  <th>点评数量</th>
                  <th>操作员</th>
                  <th>操作</th>
                </tr>
                </thead>
                <tbody id="activity-list-body"></tbody>
              </table>
            </div>

            <!-- /.row -->
            <div class="pagination dataTables_paginate paging_simple_numbers pull-right" id="pagination" role="status"
                 aria-live="polite">
            </div>

          </div>
          <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
      </div>
      <!-- /.col-lg-12 -->
    </div>
  </div>
  <!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->
<script id="tpl-activity-list-item" type="text/template">
  <tr>
    <td>{{activityId}}</td>
    <td>{{title}}</td>
    <td>{{activityTypeName}}</td>
    <td>{{datetime(createTime)}}</td>
    <td>
      <% if (commentCount==0) { %>
      <span>暂无评论</span>
      <% } %>
      <% if (commentCount>0) { %>
      <a href="/server/comment-list">{{commentCount}}条评论</a>
      <% } %>
    </td>
    <td>{{operator}}</td>
    <td>
      <a href="/server/activity-detail?activityId={{activityId}}" type="button" class="btn btn-info btn-xs">产品详情</a>
      <% if (activityTypeId==0) { %>
      <a href="/server/player-list?activityId={{activityId}}" type="button" class="btn btn-warning btn-xs">报名查询</a>
      <% } %>
      <% if (activityTypeId==6) { %>
      <a href="/server/player-list?activityId={{activityId}}" type="button" class="btn btn-warning btn-xs">购买查询</a>
      <% } %>
      <% if (activityTypeId==1) { %>
      <a href="/server/player-list?activityId={{activityId}}" type="button" class="btn btn-warning btn-xs">报名查询</a>
      <% } %>
      <% if (activityTypeId==4) { %>
      <a href="/server/player-list?activityId={{activityId}}" type="button" class="btn btn-warning btn-xs">报名查询</a>
      <% } %>
      <% if (activityTypeId==5) { %>
      <a href="/server/camp-player-list?activityId={{activityId}}" type="button" class="btn btn-warning btn-xs">报名查询</a>
      <% } %>
      {{share(episodeStatus,activityId,title,activityTypeId)}}
      <% if (episodeStatus == null) { %>
      <a type="button" class="btn btn-danger btn-xs delete-no-episode" data-code="{{activityId}}">删除</a>
      <% } else if (episodeStatus < 1) { %>
      <a type="button" class="btn btn-danger btn-xs delete-with-episode" data-code="{{activityId}}">删除</a>
      <% } %>
    </td>
  </tr>
</script>

<!-- Modal -->
<div class="modal fade" id="activity-preview" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">产品手机版二维码</h4>
      </div>
      <div class="modal-body" style="padding-left: 145px;">
        <img src="/server/r/static/images/qrcode.png" style="width: 300px;height: 300px;">
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
    <!-- /.modal-content -->
  </div>
  <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<div id="hxz-background" class="background" style="display: none; "></div>
<div id="hxz-progressBar" class="progressBar" style="display: none; ">数据加载中，请稍等...</div>

<script src="/server/r/require.js"></script>
<script>/*resourcemap*/
require.config({paths:{
  "r/bower_components/jquery/dist/jquery.min": "/server/r/bower_components/jquery/dist/jquery.min",
  "r/bower_components/underscore/underscore-min": "/server/r/bower_components/underscore/underscore-min",
  "r/static/js/hxz/hxz.valid": "/server/r/static/js/hxz/hxz.valid_12cc206",
  "r/static/js/hxz/hxz.rest": "/server/r/static/js/hxz/hxz.rest_07c8105",
  "r/bower_components/alertify/alertify.min": "/server/r/bower_components/alertify/alertify.min",
  "r/static/js/alertify-config": "/server/r/static/js/alertify-config_0cc8db2",
  "r/bower_components/bootstrap/dist/js/bootstrap.min": "/server/r/bower_components/bootstrap/dist/js/bootstrap.min",
  "r/bower_components/metisMenu/dist/metisMenu.min": "/server/r/bower_components/metisMenu/dist/metisMenu.min",
  "r/bower_components/select2/dist/js/select2": "/server/r/bower_components/select2/dist/js/select2",
  "r/static/js/hxz/hxz.ui": "/server/r/static/js/hxz/hxz.ui_0a7714d",
  "r/static/js/hxz/hxz": "/server/r/static/js/hxz/hxz_589b155",
  "r/vendor/pagination/jquery.pagination": "/server/r/vendor/pagination/jquery.pagination",
  "r/bower_components/jquery-qrcode/jquery.qrcode.min": "/server/r/bower_components/jquery-qrcode/jquery.qrcode.min"
}});</script>
<script src="/server/r/static/js/app/admin-activity-list_dc53299.js"></script>
</body>

</html>